package com.hangzhou.xyj.model.type;

/**
 * Created by neo.duan on 2016/4/26.
 * 消息类型
 */
public enum EMessageType {
    // 未知
    UNKNOWN(0),
    // 系统消息
    SYSTEM(1),
    // 个人消息
    PERSON(2),
    // 群消息
    GROUP(3),
    //推送消息
    NOTIFICATION(4);

    private int mValue;

    EMessageType(int value) {
        this.mValue = value;
    }

    public static EMessageType valueOf(int value) {
        switch (value) {
            case 1:
                return SYSTEM;
            case 2:
                return PERSON;
            case 3:
                return GROUP;
            case 4:
                return NOTIFICATION;
            default:
                return UNKNOWN;
        }
    }

    public int getValue() {
        return this.mValue;
    }
}
